package net.learn.piggy.runner;

import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;
import java.util.Set;

@Component
public class MyApplicationRunner implements ApplicationRunner {
    @Override
    public void run(ApplicationArguments args) {
        Set<String> optionNames = args.getOptionNames();
        System.out.println("MyApplicationRunner --> run --> "+optionNames.toString());
    }
}
